class HotwordResultModel {
  String? errorMsg;
  int? errorCode;
  DataBean? data;

  static HotwordResultModel fromMap(Map<String, dynamic> map) {
    return HotwordResultModel()
      ..errorMsg = map['errorMsg']
      ..errorCode = map['errorCode']
      ..data = map['data'] != null ? DataBean.fromMap(map['data']) : null;
  }

  static List<HotwordResultModel> fromMapList(dynamic mapList) {
    return List<HotwordResultModel>.generate(
      mapList.length,
          (index) => fromMap(mapList[index]),
    );
  }
}

class DataBean {
  bool? over;
  int? curPage;
  int? offset;
  int? pageCount;
  int? size;
  int? total;
  List<DatasListBean>? datas;

  static DataBean fromMap(Map<String, dynamic> map) {
    return DataBean()
      ..over = map['over']
      ..curPage = map['curPage']
      ..offset = map['offset']
      ..pageCount = map['pageCount']
      ..size = map['size']
      ..total = map['total']
      ..datas = map['datas'] != null
          ? DatasListBean.fromMapList(map['datas'])
          : null;
  }

  static List<DataBean> fromMapList(dynamic mapList) {
    return List<DataBean>.generate(
      mapList.length,
          (index) => fromMap(mapList[index]),
    );
  }
}

class DatasListBean {
  String? apkLink;
  String? author;
  String? chapterName;
  String? desc;
  String? envelopePic;
  String? link;
  String? niceDate;
  String? origin;
  String? projectLink;
  String? superChapterName;
  String? title;
  bool? collect;
  bool? fresh;
  int? chapterId;
  int? courseId;
  int? id;
  int? publishTime;
  int? superChapterId;
  int? type;
  int? userId;
  int? visible;
  int? zan;
  List<TagsListBean>? tags;

  static DatasListBean fromMap(Map<String, dynamic> map) {
    return DatasListBean()
      ..apkLink = map['apkLink']
      ..author = map['author']
      ..chapterName = map['chapterName']
      ..desc = map['desc']
      ..envelopePic = map['envelopePic']
      ..link = map['link']
      ..niceDate = map['niceDate']
      ..origin = map['origin']
      ..projectLink = map['projectLink']
      ..superChapterName = map['superChapterName']
      ..title = map['title']
      ..collect = map['collect']
      ..fresh = map['fresh']
      ..chapterId = map['chapterId']
      ..courseId = map['courseId']
      ..id = map['id']
      ..publishTime = map['publishTime']
      ..superChapterId = map['superChapterId']
      ..type = map['type']
      ..userId = map['userId']
      ..visible = map['visible']
      ..zan = map['zan']
      ..tags = map['tags'] != null
          ? TagsListBean.fromMapList(map['tags'])
          : null;
  }

  static List<DatasListBean> fromMapList(dynamic mapList) {
    return List<DatasListBean>.generate(
      mapList.length,
          (index) => fromMap(mapList[index]),
    );
  }
}

class TagsListBean {
  String? name;
  String? url;

  static TagsListBean fromMap(Map<String, dynamic> map) {
    return TagsListBean()
      ..name = map['name']
      ..url = map['url'];
  }

  static List<TagsListBean> fromMapList(dynamic mapList) {
    return List<TagsListBean>.generate(
      mapList.length,
          (index) => fromMap(mapList[index]),
    );
  }
}
